﻿using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace WhiteFlow.DevTrackingTool.UI.Models.Cache
{
    [Serializable]
    public class DevTrackingToolCache
    {
        #region Constants

        /// <summary>
        /// The RecentWorksheets property name.
        /// </summary>
        public const string RecentWorksheetsPropertyName = "RecentWorksheets";

        #endregion
        
        #region Properties

        /// <summary>
        /// Gets or sets the recent worksheets.
        /// </summary>
        /// <value>
        /// The recent worksheets.
        /// </value>
        [XmlArray(ElementName = RecentWorksheetsPropertyName, IsNullable = true)]
        [XmlArrayItem(ElementName = "RecentWorksheet", IsNullable = false, Type = typeof(RecentWorksheet))]
        public ObservableCollection<RecentWorksheet> RecentWorksheets { get; set; }

        #endregion
    }
}